package cn.AssassinG.ScsyERP.Statistics.facade.entity;

import cn.AssassinG.ScsyERP.Statistics.facade.enums.ObjectType;
import cn.AssassinG.ScsyERP.common.entity.BaseEntity;

import javax.persistence.Entity;

@Entity
public class ProjectYearlyStatistics extends BaseEntity {
    private static final long serialVersionUID = 9191039862505500610L;
    //时间
    private int Year;
    //对谁统计
    private ObjectType objectType;
    private Long ObjectId;
    //统计项
    private Long ProjectAmount;

    public ProjectYearlyStatistics() {
        super();
    }

    public int getYear() {
        return Year;
    }

    public void setYear(int year) {
        Year = year;
    }

    public ObjectType getObjectType() {
        return objectType;
    }

    public void setObjectType(ObjectType objectType) {
        this.objectType = objectType;
    }

    public Long getObjectId() {
        return ObjectId;
    }

    public void setObjectId(Long objectId) {
        ObjectId = objectId;
    }

    public Long getProjectAmount() {
        return ProjectAmount;
    }

    public void setProjectAmount(Long projectAmount) {
        ProjectAmount = projectAmount;
    }

    @Override
    public String toString() {
        return "ProjectYearlyStatistics{" +
                "Year=" + Year +
                ", objectType=" + objectType +
                ", ObjectId=" + ObjectId +
                ", ProjectAmount=" + ProjectAmount +
                ", Id=" + Id +
                ", Corporation=" + Corporation +
                ", CreateTime=" + CreateTime +
                ", UpdateTime=" + UpdateTime +
                ", DeleteTime=" + DeleteTime +
                ", IfDeleted=" + IfDeleted +
                '}';
    }
}
